<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../../common/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<sfa:mainTitle></sfa:mainTitle>
<%@ include file="../../common/meta.jsp"%>
<script type="text/javascript">
	$(document).ready(function(){
		if("${msg}")
		alert("${msg}");
	});
</script>
	
</head>

<body id="master">

	<sfa:mainHeader></sfa:mainHeader>
	<div class="main">

			<h1>
				管理助理
			</h1>
			<hr />
			
			<div class="in">
				<table width="100%" border="0" cellspacing="0" cellpadding="10"
					class="table_list">
					<tbody>
						<tr class="tabheader">
						<td>
								<span>用户名</span>
						</td> 
						<td>
								<span>代理人</span>
						</td> 
						<td>
								<span>所属机构</span>
						</td> 
						<td>
								<span>邮箱地址</span>
						</td> 
						<td>
								<span>操作</span>
						</td> 
							
						</tr>
						<c:forEach items="${users}" var="user">
						<tr class="gray datarow">
							 <td>
								<span>${user.loginName }</span>
							</td> 
							<td>
								<span>${user.agentname }</span>
							</td> 
							<td>
								<span>${user.branchname}</span>
							</td> 
							<td>
								<span>${user.email }</span>
							</td> 
							
							<td>
				
						<a href="${path }/manage/role/index/updatepwd?menuId=n5g1c3&loginName=${user.loginName}">修改密码</a>
						<span class="v_line">| </span>		
								<c:set value="${user.userStatus}" var="userStatus"></c:set>
								
			<c:if test="${userStatus=='y' && user.saleUsersLoginId!=sessionScope.user.saleUsersLoginId}">
				<a href="${path }/manage/role/index/isallow?userStatus=y&loginName=${user.loginName}" >禁用</a>
			</c:if>
			<c:if test="${userStatus=='n'}">
				<a href="${path }/manage/role/index/isallow?userStatus=n&loginName=${user.loginName}" >启用</a>
			</c:if>
							</td>
						</tr>
						</c:forEach>
						
						
	
	</table>
	</div>
	</div>

	<sfa:mainFooter></sfa:mainFooter>

</body>
</html>


